package com.itheima.treeset;

import java.util.TreeSet;

public class TreeSetDemo {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        ts.add(new Student("zhangsan", 80, 75, 90));
        ts.add(new Student("lisi", 70, 70, 90));
        ts.add(new Student("wangwu", 80, 75, 90));
        for (Student student : ts) {
            System.out.println(student);
        }
    }
}
